package com.sunzm.common.utils.freemarker;

/**
 * 数据库模型
 *
 * @author Administrator
 * @version 1.0
 * @date 2021-07-20 13:19
 */
public class DBModel {
    /**
     * 列名
     */
    private String columnName;
    /**
     * 列值
     */
    private String columnValue;

    /**
     * 操作类型
     * MAX :  最大值
     * MIN :  最小值
     * ACCUMULATE :  累加
     * REPLACE :   覆盖
     */
    private String opeType;

    public DBModel() {
    }

    public DBModel(String columnName, String columnValue) {
        this.columnName = columnName;
        this.columnValue = columnValue;
    }

    public DBModel(String columnName, DBOpeType opeType, String columnValue) {
        this.columnName = columnName;
        this.opeType = opeType.toString();
        this.columnValue = columnValue;
    }

    public String getColumnName() {
        return columnName;
    }

    public void setColumnName(String columnName) {
        this.columnName = columnName;
    }

    public String getColumnValue() {
        return columnValue;
    }

    public void setColumnValue(String columnValue) {
        this.columnValue = columnValue;
    }

    public String getOpeType() {
        return opeType;
    }

    public void setOpeType(DBOpeType opeType) {
        this.opeType = opeType.toString();
    }
}
